﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Game1942.Library.Background;

namespace Game1942.Library.FlightPlans
{
    class LeftStrategy : FlightPlan
    {
        public LeftStrategy(int speed)
            : base(speed)
        {
        }

        public LeftStrategy()
        {
        }

        // Get the next point on the trajectory of the flight plan
        public override Point GetNext()
        {
            if (actualPosition == null)
                throw new InvalidOperationException("FlightPlan must be initialized!");
            actualPosition = new Point(actualPosition.X - speed, actualPosition.Y);
            return (actualPosition);
        }
    }
}
